﻿using System;
using System.IO;

namespace OpenLS.Spreadsheet.Formats.Biff.OfficeArt
{
    internal class OfficeArtSecondaryFOPT : OfficeArtRecord
    {
        private OfficeArtRGFOPTE fopt;

        public override RecType RecordType
        {
            get { return RecType.OfficeArtSecondaryFOPT; }
        }


        protected override void ReadNoHeader(OfficeArtReadContext context)
        {
            fopt = new OfficeArtRGFOPTE();
            fopt.Read(context.Reader, rhrecInstance, rhrecLen);
        }

        protected override byte Version
        {
            get { return 0x3; }
        }

        protected override int ByteLength
        {
            get { return fopt.ByteLength; }
        }


        protected override void WriteNoHeader(OfficeArtWriteContext context)
        {
            fopt.Write(context.Writer);
        }

    }
}